INCLUDE(UsePkgConfig)
PKGCONFIG(opencv includedir libdir linkflags cflags)
INCLUDE_DIRECTORIES(${includedir}) #-I。
LINK_DIRECTORIES(${libdir}) #-L
ADD_DEFINITIONS(${cflags}) #-D

# src
SET(SRCS
BookmarkDlg.cpp moc_BookmarkDlg.cpp 
CoCheckButton.cpp moc_CoCheckButton.cpp 
CoGroupBox.cpp moc_CoGroupBox.cpp 
CoListDlg.cpp moc_CoListDlg.cpp
CoListWidget.cpp moc_CoListWidget.cpp
Configuration.cpp
CoNumberEditor.cpp moc_CoNumberEditor.cpp
CoRadioButtonGroup.cpp moc_CoRadioButtonGroup.cpp
CoTabPage.cpp moc_CoTabPage.cpp
DisplayControler.cpp moc_DisplayControler.cpp 
FileBrowser.cpp moc_FileBrowser.cpp
GesturePage.cpp moc_GesturePage.cpp
GestureRecordDlg.cpp moc_GestureRecordDlg.cpp
GestureViewWidget.cpp moc_GestureViewWidget.cpp
GrayScaleDlg.cpp moc_GrayScaleDlg.cpp
KeyPage.cpp moc_KeyPage.cpp
KeyViewWidget.cpp moc_KeyViewWidget.cpp
main.cpp
mist.cpp
MainDialog.cpp moc_MainDialog.cpp 
MouseControl.cpp moc_MouseControl.cpp
PageStruct.cpp
ProcessThread.cpp moc_ProcessThread.cpp
QIplImage.cpp
SettingDlg.cpp moc_SettingDlg.cpp
StatusDlg.cpp moc_StatusDlg.cpp
ZipContainer.cpp
)

ADD_EXECUTABLE(CoCon.oar ${SRCS})
TARGET_LINK_LIBRARIES(CoCon.oar z unzip ${QTLIBS} ${ONYXLIBS} ${linkflags})
